struct Coords
{
	int x, y;
};

struct Unit
{
	int x, y;
	float xVel, yVel;
	int statA, statB, statC, statD, statE;
	bool notRealUnit;
};

struct Building
{


};
#include <vector>
#include <iostream>
using namespace std;

class DataManager
{
private:
	vector<Unit> mUnits;



public:

	int GetTotalUnits() {return mUnits.size();;}

	void ChangeUnit(int ID, const Unit& newUnit);
	void ChangeUnitLocation(unsigned char* data);

	Unit GetUnit(int ID);
	string GetUnitLocation(unsigned char* data);
	string GetUnitLocation(int ID);

	int AddUnit(Unit& newUnit); // returns a unit ID
	int AddUnit(unsigned char* data);



	void SaveData(unsigned char* dataWithoutExtensions);
	void LoadData(unsigned char* dataWithoutExtensions);
};

string NumToString(int num); // Returns a string object for a given integer
void ParseData(int& pos, string& stored, unsigned char* data);